package de.ubschmidt.capi;

import java.nio.ByteBuffer;

/**
 *
 */
public interface ByteBufferWritable {
    /**
     * Encode this object to its binary representation and write it
     * to the specified ByteBuffer.
     *
     * @param byteBuffer The binary representation will be written to this
     *                   {@code ByteBuffer}.
     */
    void writeTo(ByteBuffer byteBuffer);
}
